package org.aepscolombia.platform.models.entity;
// Generated Apr 8, 2014 9:37:27 AM by Hibernate Tools 3.2.1.GA

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * FertilizationsTypes generated by hbm2java
 */
@Entity
@Table(name="application_types")
public class ApplicationTypes  implements java.io.Serializable {


    private Integer idAppTyp;
    private String nameAppTyp;

    public ApplicationTypes() {
    }
    
    public ApplicationTypes(Integer idAppTyp) {
        this.idAppTyp = idAppTyp;
    }
	
    public ApplicationTypes(String nameAppTyp) {
        this.nameAppTyp = nameAppTyp;
    }
   
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_app_typ", unique=true, nullable=false)
    public Integer getIdAppTyp() {
        return this.idAppTyp;
    }
    
    public void setIdAppTyp(Integer idAppTyp) {
        this.idAppTyp = idAppTyp;
    }
    
    @Column(name="name_app_typ", nullable=false, length=45)
    public String getNameAppTyp() {
        return this.nameAppTyp;
    }
    
    public void setNameAppTyp(String nameAppTyp) {
        this.nameAppTyp = nameAppTyp;
    }

}


